package network;

import java.io.IOException;
import java.net.*;

public class UDPSendTest01 {
    public static void main(String[] args) throws IOException {
        DatagramSocket datagramSocket = new DatagramSocket();
        byte[] bytes = "hello,11111".getBytes();
        DatagramPacket packet = new DatagramPacket(bytes, bytes.length, InetAddress.getByName("127.0.0.1"), 10086);

        datagramSocket.send(packet);

        datagramSocket.close();
    }
}
